#include<bits/stdc++.h>
using namespace std;
int n, r, a[100005], maxr=0, ans, now;
int main(){
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin>>n;
    for (int i=0;i<n;i++){
        cin>>r;
        a[r]++;
        maxr = max(maxr, r);
    }
    ans = n;
    for (int i=1;i<=maxr;i++){
        if (a[i] == 0)continue;
        ans -= min(a[i], now);
        now -= min(a[i], now);
        now += a[i];
    }
    cout<<ans;
}
